<?php
/**
 * Created by PhpStorm.
 * User: jiangshuxiong
 * Date: 2018/1/17
 * Time: 17:15
 */
$cars = array(
    array("BMW",10,19),
    array("Volvo",20,20),
    array("Land Rover",29,99)
);
echo $cars[0][0].":库存：".$cars[0][1].". 销量：".$cars[0][2]."."."<br>";
echo $cars[1][0].":库存：".$cars[1][1].". 销量：".$cars[1][2]."."."<br>";
echo $cars[2][0].":库存：".$cars[2][1].". 销量：".$cars[2][2]."."."<br>";

for($row = 0;$row<3;$row++){
    echo "<p><b>Row number $row</b></p>";
    echo "<ul>";
    for($col=0;$col<3;$col++){
        echo "<li>".$cars[$row][$col]."</li>";
    }
    echo "</ul>";
}
?>